import http from './http'
// import server from 'config/server'

export default {
  /**
   * 获取天气pm2.5数据
   * @return {Promise}
   */
  pm25 (appId, params) {
    return http.post(
      `http://plugin-api.xlink.cn/module/airQuality/${appId}/api/weatherQuality/list`, params, {
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'Access-Token': window.localStorage.getItem('appToken')
        }
      }
    )
  }
}
